package com.example.mobile_function;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;

public class BorderTextView  extends TextView {
	public BorderTextView(Context context) {
		super(context);
	}
	public BorderTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	private int sroke_width = 1;
	@Override
	protected void onDraw(Canvas canvas) {
		Paint paint = new Paint();
        paint.setColor(android.graphics.Color.BLACK);
        canvas.drawLine(0, 0, this.getWidth() - sroke_width+1, 0, paint);
        canvas.drawLine(0, this.getHeight() - sroke_width+1, this.getWidth() - sroke_width+1, this.getHeight() - sroke_width+1, paint);
		super.onDraw(canvas);
	}

}